#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMetaProperty>
#include "qperson.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
private:
    QPerson *boy;
    QPerson *girl;

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void updateText(QPerson *aPersion);

private slots:
    void on_boyBtn_clicked();

    void on_classBtn_clicked();

    void on_girlBtn_clicked();

    void on_clearBtn_clicked();

 private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
